package com.meritdata.cloud.data.manager.model.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

/**
 * 物理模型实体表
 * @Author wujx
 */
@Entity
@Table(name = "TD_DATA_MODEL")
public class TdDataModel {
    // ID
    @Id
    @Column(length = 32)
    private long id;

    // 数据源id
    @Column(name = "DATASOURCE_ID")
    private  Long datasourceId;

    //物理表名称
    @Column(name = "TABLE_NAME")
    private String tableName;

    //物理表别名
    @Column(name = "ALIAS_NAME")
    private String aliasName;

    //创建时间
    @Column(name = "CREATE_TIME")
    private Date createTime;

    //所属域
    @Column(name = "DOMAIN_ID")
    private Long domainId;
    //更新时间
    @Column(name = "UPDATE_TIME")
    private Date updateTime;


    public TdDataModel() {
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public Long getDatasourceId() {
        return datasourceId;
    }

    public void setDatasourceId(Long datasourceId) {
        this.datasourceId = datasourceId;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getAliasName() {
        return aliasName;
    }

    public void setAliasName(String aliasName) {
        this.aliasName = aliasName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getDomainId() {
        return domainId;
    }

    public void setDomainId(Long domainId) {
        this.domainId = domainId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
